package com.bcx.crm.java.initializer;

import org.springframework.web.WebApplicationInitializer;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import java.util.Enumeration;

/**
 * Created by ys on 2018/1/4
 * 自定义初始化器
 */
public class MyServletInitializer implements WebApplicationInitializer{
    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        Enumeration<String> attributeNames = servletContext.getAttributeNames();
    }
//    @Override
//    public void onStartup(ServletContext servletContext) throws ServletException {
//        ServletRegistration.Dynamic myServlet=servletContext.addServlet("myServlet", (Class<? extends Servlet>) Artist.class);
//        myServlet.addMapping("");
//    }
}
